<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>安平县居民核酸检测信息系统</title>
    <link rel="stylesheet" href="./css/index.css?v=08">
    <script src="./jquery/jquery.min.js"></script>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
</head>

<body>
    <div class="title"></div>
    <img src="./images/reg.png" alt="" onclick="goRegister()">
    <img src="./images/join.png?v=01" alt="" onclick="goSelectType()">
    <img src="./images/result.png" alt="" onclick="goResult()">
    <div class="user"><a href="javascript:void(0);" onClick="xuzhi()">用户须知</a>
    </div>
    <div>
        <img src="./images/tishi.png" alt="" class="imgs">
    </div>
    <div class="tishis">安平县新冠肺炎疫情防控工作指挥部</div>
    <div class="tishi">技术支持: 智慧安平</div>
    <script>
        //alert(window.location.href)
      	function xuzhi(){
        	window.location.href = 'http://hesuan.city1000.cn/use.html?code='+CODE
        }
        var args = new Object();
        var query = decodeURI(location.search.substring(1)); //获取查询串   
        var pairs = query.split("&"); //在逗号处断开  
        //alert(pairs);
        for (var i = 0; i < pairs.length; i++) {
            var pos = pairs[i].indexOf('='); //查找name=value   
            if (pos == -1) continue; //如果没有找到就跳过   
            //alert(pos);
            var argname = pairs[i].substring(0, pos); //提取name   
            var value = pairs[i].substring(pos + 1); //提取value   
            args[argname] = unescape(value); //存为属性   
        }
        var CODE = args.code;
        //alert('code' + CODE);
        
        function goRegister() {
            // 跳转到登记页面
            window.location.href="http://user.city1000.cn:9999/weixin/wechat/h5/redirectSomeWhere?url=http://hesuan.city1000.cn/register_v2/register_index.html"
        }
        function goResult(){
            //跳转到查询结果页面
            //window.location.href="http://user.city1000.top/wechat/fetchResultData"
          	window.location.href='http://user.city1000.cn:9999/weixin/wechat/h5/redirectSomeWhere?url=http://hesuan.city1000.cn/input_idcard.html'
        }
      	function goSelectType(){
        	window.location.href="http://user.city1000.cn:9999/weixin/wechat/h5/redirectSomeWhere?url=http://hesuan.city1000.cn/select_type.html";
        }
    </script>
</body>

</html>